<template>
  <div class="home">
    <p>{{ demos }}</p>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'
import { State, Getter, Action, Mutation } from 'vuex-class'

@Component
export default class DoctorHome extends Vue {
  private demos: string = '医生端首页'
  private $http: any
  @Getter('isClosedHeader') Header: string | undefined

  async created () {
    console.log('isClosedFooter: ', this.Header)
    let data = await this.$http.DoctorHome.getHomeData()
    console.log(data)
  }
}
</script>

<style lang="stylus" scoped>
  p
    color $red300
</style>
